<template>
  <div id="scanrep">
    <div class="title">当前柜机需要补货商品</div>
    <!-- 开门捕获界面 -->
    <div v-if="isShow">
      <div class="list">
        <div class="li">
          <h4>1号柜箱</h4>
          <div class="det">
            <img src="../../../assets/del1.png" alt="">
            <p>杜蕾斯 避孕套 男用 安全套超薄尊享三合一男用 安全套超男用 安全套</p>
          </div>
        </div>
        <div class="li">
          <h4>5号柜箱</h4>
          <div class="det">
            <img src="../../../assets/del2.png" alt="">
            <p>南极人睡衣女冬季法兰绒加厚</p>
          </div>
        </div>
        <div class="li">
          <h4>6号柜箱</h4>
          <div class="det">
            <img src="../../../assets/del3.png" alt="">
            <p>女空姐校花制服诱惑组合套装</p>
          </div>
        </div>
      </div>
      <div class="handle" @click="replenHandle">开门补货</div>
    </div>
    <!-- 补货界面 -->
    <div v-if="!isShow">
      <smbhuo />
    </div>
  </div>
</template>

<script>
import smbhuo from 'components/Smbhuo'

export default {
  name: 'Scanrep',
  components: {
    smbhuo
  },
  data () {
    return {
      isShow: true
    }
  },
  created () {
    document.title = '扫码补货'
  },
  methods: {
    replenHandle () {
      this.isShow = false
    }
  }
}
</script>

<style lang='scss' scoped>
#scanrep{
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  .title{
    height: 12.26vw;
    line-height: 12.26vw;
    padding: 0 3.46vw;
    font-size: 5.6vw;
    font-family:SourceHanSansCN-Regular;
    font-weight:400;
    color:rgba(255,0,0,1);
  }
  .list{
    box-sizing: border-box;
    .li{
      background-color: #fff;
      &:last-child{
          margin-bottom: 23vw;
        }
      h4{
        height: 14.66vw;
        padding: 0 3.46vw;
        line-height: 14.66vw;
        font-size: 5.6VW;
        font-family:SourceHanSansCN-Bold;
        font-weight:bold;
        color:rgba(22,22,22,1);
      }
      .det{
        height: 48vw;
        padding: 0 3.46vw;
        display: flex;
        align-items: center;
        margin-bottom: 4vw;
        img{
          width: 40vw;
          height: 40vw;
          margin-right: 2vw;
        }
        p{
          width: 51.73vw;
          font-size: 5.6vw;
          font-family:SourceHanSansCN-Bold;
          font-weight:bold;
          color:rgba(22,22,22,1);
          line-height: 7.5vw;
        }
      }
    }
  }
  .handle{
    width: 100%;
    height: 14.93vw;
    background-color: #0A6DFF;
    text-align: center;
    line-height: 14.93vw;
    font-size: 5.6vw;
    font-family:SourceHanSansCN-Bold;
    font-weight:bold;
    color:rgba(255,255,255,1);
    position: fixed;
    bottom: 0;
  }
}
</style>
